package com.gmgx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//@NoArgsConstructor
@AllArgsConstructor
public class Teacher {

    private Integer tno;
    private  String tname;

    public Teacher() {
        System.out.println("无参构造，创建的节点");
    }

    public Teacher(Integer tno, String tname) {
        this.tno = tno;
        this.tname = tname;
    }

    private Classroom classroom;

}
